package com.seanLab.configuration;

import com.seanLab.tool.TagSuggestModel.StaticModelProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * Created by ailly on 17-12-11.
 */
@Service
public class ConfigAdaptor {
    @Autowired
    private TestConfig testConfig;

    @Autowired
    private SystemConfig systemConfig;

    @PostConstruct
    public void init() {
        StaticConfig.testLabel = testConfig.getTestLabel();
        StaticConfig.recommendLabel = testConfig.getRecommendLabel();
        StaticConfig.topicFilter = systemConfig.getTopicFilter();
    }
}
